pull: Fix a used before initialization warning
authorGiuseppe Scrivano <gscrivan@redhat.com>
Thu, 30 Oct 2014 09:59:30 +0000 (10:59 +0100)
committerColin Walters <walters@verbum.org>
Thu, 30 Oct 2014 16:16:59 +0000 (12:16 -0400)
src/libostree/ostree-repo-pull.c:1676:22: warning: 'flags' may be used uninitialized in this function [-Wmaybe-uninitialized]

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
src/libostree/ostree-repo-pull.c

index e1ca435128b976bdb4d9df8fb1918ab03a45e0a2..8391d9c43d4e9217f09b1b87a33ee7b19786f5cc 100644 (file)
@@ -1322,7 +1322,7 @@ ostree_repo_pull_with_options (OstreeRepo             *self,
   char **configured_branches = NULL;
   guint64 bytes_transferred;
   guint64 end_time;
-  OstreeRepoPullFlags flags;
+  OstreeRepoPullFlags flags = 0;
   const char *dir_to_pull = NULL;
   char **refs_to_fetch = NULL;
   gboolean is_mirror;